!function(){var t={75:function(t){(function(){var e,i,n,r;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(t.exports=function(){return(e()-r)/1e6},i=process.hrtime,r=(e=function(){var t;return 1e9*(t=i())[0]+t[1]})()-1e9*process.uptime()):Date.now?(t.exports=function(){return Date.now()-n},n=Date.now()):(t.exports=function(){return new Date().getTime()-n},n=new Date().getTime())}).call(this)},87:function(t,e,i){var n=i(75),r="undefined"==typeof window?i.g:window,a=["moz","webkit"],o="AnimationFrame",s=r["request"+o],h=r["cancel"+o]||r["cancelRequest"+o];for(var c=0;!s&&c=0?s[e]:null}});function l(t){if(t.parentNode){var e=Array.prototype.indexOf.call(t.parentNode.childNodes,t);var i=l(t.parentNode);return i.push(e),i}return[]}function u(t){return!(t.left===t.right&&t.top===t.bottom&&t.right===t.top&&0===t.top)}function d(t,e){this.queue=t||[],this.processing={},this.origin=e,this.infographics={},this.legacyList=[],this.addIframesListener(),this.addScrollListener(),this.initWatcher(),this.handleResizeEvent()}var p=d.prototype;p.addIframesListener=function(){t.addEventListener("message",this.handleMessageEvent.bind(this))},p.addScrollListener=function(){t.addEventListener("scroll",this.handleScrollEvent.bind(this),{passive:!0,capture:!0}),t.addEventListener("resize",this.handleResizeEvent.bind(this))},p.handleResizeEvent=function(){this.vWidth=t.innerWidth||e.documentElement.clientWidth,this.vHeight=t.innerHeight||e.documentElement.clientHeight,this.handleScrollEvent()},p.checkVisible=function(){this.sortQueue();var t=[];this.queue.forEach((function(e){!e.viewed&&this.isElementVisible(e.container)&&(e.viewed=!0,t.push(e))}).bind(this)),t.forEach((function(t){this.processInfographic(t)}).bind(this))},p.handleScrollEvent=function(){this.scrollBuffer||(this.scrollBuffer=requestAnimationFrame((function(){this.checkVisible(),this.scrollBuffer=null}).bind(this)))},p.handleMessageEvent=function(t){if(this.origin!==t.origin){var e=/^https?:\/\//;var i="https://";var n=this.origin.replace(e,i);var a=t.origin.replace(e,i);if(a!==n&&-1===r.indexOf(a))return;-1===this.origin.indexOf(i)&&0===t.origin.indexOf(i)&&(this.origin=n)}var o=t.source;if(!f.contains(o)){for(var s in this.infographics)if(this.infographics.hasOwnProperty(s)&&this.infographics[s].iframe().contentWindow===o){f.add(o,s);break}}var h=f.id(o);if(h&&h in this.infographics)this.handleIframeEvent(h,t.data);else try{var c=t.data.split("#")[1].split(":")[0];for(var l in this.infographics)this.infographics.hasOwnProperty(s)&&this.infographics[l].id===c&&this.handleIframeEvent(l,t.data)}catch(t){}},p.handleIframeEvent=function(t,e){if("string"==typeof e){var i=e.split(":").shift();var n=this.infographics[t];var r;if("frameReady"===e){delete this.processing[t],0===Object.keys(this.processing).length&&(this.checkVisible(),this.processOne()),this.handleScrollEvent();return}if(/^iframeLoaded/.test(i))this.handleResizeEvent(),this.sendToIframe(t,"iframeWidth:"+n.containerWidth);else if(/^iframeHeight/.test(i)){r=n.iframe();var a=e.substr(i.length+1).replace(/^\s+|\s+$/g,"");this.sendToIframe(t,"iframeHeightReceived:"+a);var o=a+"px";r.style.height!==o&&(r.style.height=o,n.iframeHeight=a,this.fixForGannett(n))}}},p.fixForGannett=function(t){var e=t.container.parentNode;if(e&&e.parentNode){var i=e.parentNode;if(i&&i.className&&-1!==i.className.indexOf("oembed-infogram")){var n=t.containerWidth;var r=t.iframeHeight||t.iframe.style.height;i.setAttribute("data-width",n),i.setAttribute("data-height",r),$&&$.data&&($(i).data("width",n),$(i).data("height",r))}}},p.sendToIframe=function(t,e){var i=this.infographics[t];i&&i.iframe()&&i.iframe().contentWindow&&i.iframe().contentWindow.postMessage(e,this.origin)},p.isElementVisible=function(t,e){if(!t)return!1;var i=e||t.getBoundingClientRect();if(i.right<0||i.bottom<0||i.left>this.vWidth||i.top>this.vHeight||0===i.width&&0===i.height&&0===i.left&&0===i.top)return!1;var n=Math.min(this.vWidth-i.left,i.width);var r=Math.min(this.vHeight-i.top,i.height);var a=-1*Math.min(i.left,-0);return{top:-1*Math.min(i.top,-0),left:a,width:n,height:r}},p.initWatcher=function(){setInterval((function(){var t;for(t in this.infographics)if(this.infographics.hasOwnProperty(t)){var i=this.infographics[t];var n;if(i.container&&function(t){if(e.contains)return e.contains(t);var i=e.documentElement;for(;t;){if(t===i)return!0;t=t.parentNode}return!1}(i.container))n=i.container;else if(n=e.getElementById(t))i.container=n;else{delete this.infographics[t];continue}var r=n.offsetWidth;if(r&&i.containerWidth!==r){i.containerWidth=r;var o=a(n);var s=this.getHorizBorders(o)+this.getHorizPaddings(o);var h=parseInt(r,10)-s;i.iframe&&(i.iframe().style.width=h+"px",this.sendToIframe(t,"iframeWidth:"+h))}}this.legacyList&&this.legacyList.length&&(this.queue=this.legacyList.slice(0),this.legacyList.length=0,this.processQueue())}).bind(this),200)},p.getHorizBorders=function(t){return parseInt(t.getPropertyValue("border-left-width")||0,10)+parseInt(t.getPropertyValue("border-right-width")||0,10)},p.getHorizPaddings=function(t){return parseInt(t.getPropertyValue("padding-left")||0,10)+parseInt(t.getPropertyValue("padding-right")||0,10)},p.add=function(t,e,i,n){this.queue.push({id:t,title:n,container:e,type:i}),0===Object.keys(this.processing).length&&this.processQueue()},p.processInfographic=function(t){var e=this.queue.indexOf(t);if(!(e<0)){this.queue.splice(e,1);var i=function(){function t(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return"ig-"+t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}();t.id=t.id.replace("infogram_0_","").replace(/(http(s?):\/\/infogr(\.am|am\.com)\/)/,"").replace(/\s/g,""),t.container.id=i,t.containerWidth=parseInt(t.container.offsetWidth,10);var n=this.createIframe(t.id,t.title||"",t.type,t.containerWidth);for(t.iframe=function(){return t.container.getElementsByTagName("iframe")[0]};t.container.firstChild;)t.container.removeChild(t.container.lastChild);t.container.appendChild(n),this.infographics[i]=t,this.processing[i]=t}},p.sortQueue=function(){this.queue.sort(function(t,e){return function(t,e){var i=t.getBoundingClientRect();var n=e.getBoundingClientRect();var r=u(i);if(r!=u(n))return r?-1:1;var a=Math.abs(i.top)-Math.abs(n.top);if(0!=a)return a;var o=0;var s=l(t);var h=l(e);for(;o0;)this.processOne()},p.createIframe=function(t,i,r,a){var o=e.createElement("iframe");var s=this.origin+"/"+t+"?parent_url="+encodeURIComponent(e.location.href)+"&src=embed";"image"===r&&(s+="&type=image"),n&&(s+="#async_embed"),i=i.replace(/&/g,"&").replace(//g,">").replace(/\"/g,""");var h=o.style;return h.border="none",h.width=a+"px",h.height="130px",o.src=s,o.setAttribute("scrolling","no"),o.setAttribute("frameborder","0"),o.setAttribute("allowfullscreen",""),i&&o.setAttribute("title",i),o},p.process=function(){var t=this;Object.keys(this.processing).forEach(function(i){var n=t.processing[i];e.body.contains(n.container)||(delete t.processing[i],delete t.infographics[i])});var i=v();var n=i.length;for(var r=0;r-1)){var s=o.getAttribute("data-id");var h=o.getAttribute("data-type");var c=o.getAttribute("data-title");var f=t.getComputedStyle(o);"0px"==f.getPropertyValue("height")&&"0px"==f.getPropertyValue("min-height")&&o.style.setProperty("min-height","1px"),o.setAttribute("data-processed",1),g.push(o),i.push({container:o,id:s,title:c,type:h})}}return i}if(!t[i]||!t[i].initialized){var m;m=e.getElementById("infogram-async")?e.getElementById("infogram-async").src:t[i].script;var y=v();var b;var w;var E;t[i]&&t[i].list&&t[i].list.length&&Array.prototype.push.apply(y,t[i].list);var x=new d(y,((b=e.createElement("A")).href=m,w=b.port&&80!=b.port&&443!=b.port?":"+b.port:"",E="http:",b.protocol.length>2?E=b.protocol:t.location.protocol.length>2&&(E=t.location.protocol),E+"//"+b.hostname+w));x.processOne(),t[i]={add:x.add.bind(x),process:x.process.bind(x),list:x.legacyList,initialized:!0}}}(window,document,"InfogramEmbeds")}();